package com.qianfeng.service;

import com.qianfeng.dto.Page;
import com.qianfeng.entity.DayStudentChange;
import com.qianfeng.entity.HomeMonthChange;
import com.qianfeng.entity.Student;

import java.text.ParseException;
import java.util.Date;
import java.util.List;

public interface StudentService {
    /**
     * 增
     */
    void addStudent(Student student);

    /**
     * 删
     */
    void deleteStudent(Integer studentId);

    /**
     * 更新
     */
    void updateStudent(Student student);

    /**
     * 分页
     */
    Page getStudentPage(Integer pageNo,Integer pageSize);

    /**
     * 根据Id查询部门
     */
    Student getStudentByStudentId(Integer studentId);

    /**
     * 每日增长
     */
    List<DayStudentChange> getChangeDayStudent(Date inTime) throws ParseException;

    /**
     * 前六个月增长趋势
     */
    HomeMonthChange getHomeMonthChange() throws ParseException;
}
